import pandas as pd
index=['王蒙','李珊','赵胜','刘文']#定义行
coulmns=['语文','数学','英语']#定义列
dict={'语文':[100,95,98,112],'数学':[120,11,80,106],'英语':[105,108,100,97]}
df1=pd.DataFrame(dict,index)
print(df1)
s1=pd.Series([110,120,105],coulmns)
s2=pd.Series([95,110,108],coulmns)
s3=pd.Series([98,80,100],coulmns)
s4=pd.Series([112,106,91],coulmns)
df2=pd.DataFrame([s1,s2,s3,s4],index)
print(df2)